package com.knife.blog.logic.impl;

import com.knife.blog.domain.BlogConfig;
import com.knife.blog.logic.BlogConfigService;

public class BlogConfigServiceImpl extends DAOSupportService implements BlogConfigService {

	private static BlogConfigServiceImpl blogConfigServiceImpl = new BlogConfigServiceImpl();
	
	private BlogConfigServiceImpl(){
		
	}
	
	public static BlogConfigServiceImpl getInstance(){
		return blogConfigServiceImpl;
	}
	
	public BlogConfig getBlogConfig(String cid) {
		// TODO 自动生成方法存根
		return (BlogConfig)this.dao.get(BlogConfig.class, cid);
	}
	
	public boolean save(BlogConfig config){
		return this.dao.save(config);
	}

	public boolean update(BlogConfig config) {
		// TODO 自动生成方法存根
		return this.dao.update(config);
	}

}
